<!--{include control/admin/tpl/admin_header}-->  
<div class="page_title">
    	<h1>{$_lang['user_manage']}</h1>
		<div class="tool">
            <a href="{BASE_URL}/index.php/admin/user_list" >{$_lang['user_manage']}</a>
            <a href="{BASE_URL}/index.php/admin/user_add" class="here">{if $uid}{$_lang['edit']}{else}{$_lang['add']}{/if}{$_lang['user']}</a>
    	    <a href="{BASE_URL}/index.php/admin/user_add/charge">{$_lang['charge']}</a>
    	</div>
    </div>
		<div class="box post">
               <form class="detail" action="{BASE_URL}/index.php/admin/user_add/save" method="post" name="frm_add" id="frm_add">
                    <input type="hidden" name="formhash" value="{FORMHASH}">
                     <input type="hidden" name="hid_uid" value="{$edit_arr[uid]}">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tbody>
                      <tr>
                        <th scope="row" width="130">{$_lang['username']}{$_lang['zh_mh']}</th>
                        <td>
                       <input type="text" class="txt" style=" width:260px;" {if $uid}disabled="disabled" ignore="true"{/if} value="{$edit_arr['username']}" name="username" id="txt_username" maxlength="50" title="{$_lang['please_input_limit_char_username']}" limit="required:true;len:2-20" msg="{$_lang['please_input_limit_char_username']}" ajax="{BASE_URL}/index.php/admin/user_add/checkusername?check_username=" msgArea="txt_username_msg" valid="1"/><b style="color:red"> *</b><span id="txt_username_msg"></span>
					  </td>
                      </tr>
                      <tr>
                        <th scope="row">{$_lang['password']}{$_lang['zh_mh']}</th>
                        <td> <input type="password" class="txt" style="width:260px;" name="password" id="password"limit="{if !$uid}required:true;len:6-20{else}len:6-20{/if}" title="{$_lang['please_input_password']}..." msg="{$_lang['password_limit']}" msgArea="pwd_pwd_msg"  class="input_t"/>{if !$uid}<b style="color:red">*</b>{/if}<span id="pwd_pwd_msg"></span>
						</td>
                      </tr>
					  <tr>
                       <th scope="row">{$_lang['email']}{$_lang['zh_mh']}</th>
                        <td> <input type="text" class="txt" style="width:260px;" name="email" id="email"limit="required:true;type:email" value="{$edit_arr['email']}" msg="{$_lang['format_error']}" title="{$_lang['please_input_right_email']}..." msgArea="txt_email_msg"/><b style="color:red"> *</b><span id="txt_email_msg"></span></td>
                      </tr>
					  {if $uid&&$shop_open}
 					   <tr>
                        <th scope="row">{$_lang['is_recommend']}{$_lang['zh_mh']}</th>
                        <td>
                          <p>
                           <label for="rdo_0">
                              <input type="radio" name="recommend" id="rdo_0" value="1"  {if $edit_arr['recommend']==1}checked=checked{/if}>
							  {$_lang['yes']}</label>
                            <label for="rdo_1">
                              <input type="radio" name="recommend" id="rdo_1" value="0" {if !$edit_arr['recommend']}checked=checked{/if}>
							   {$_lang['no']}</label>
                            <br/>
                        </p></td>
                      </tr>
					  <tr>
                        <th scope="row">{$_lang['is_disable']}{$_lang['zh_mh']}</th>
                        <td>
                          <p>
                           <label for="rdo_0">
                              <input type="radio" name="status" id="rdo_0" value="2"  {if $edit_arr['static']==2}checked=checked{/if}>
							  {$_lang['yes']}</label>
                            <label for="rdo_1">
                              <input type="radio" name="status" id="rdo_1" value="1" {if $edit_arr['static']!=2}checked=checked{/if}>
							   {$_lang['no']}</label>
                            <br/>
                        </p></td>
                      </tr>
					  {/if}
					  <tr>
 						 <th scope="row">{$_lang['user_group']}{$_lang['zh_mh']}</th>
                        <td> 
					  	<select name="group_id">
					  	 <option value="0" {if $v[group_id]<0} selected="selected"{/if}>{$_lang['ordinary_user']}</option>
					   {loop $member_arr $v}
					  	 <option value="{$v['group_id']}" {if $member_arr['group_id']== $v['group_id']}selected="selected"{/if}>$v[groupname]</option>
					   {/loop}
					   </select><b style="color:red">*</b>
                      </td>
                      </tr>
					 </tbody>
					 <tfoot>
                      <tr>
                        <th scope="row">&nbsp;</th>
                        <td>
                            <div class="clearfix padt10">
                            	<input type="hidden" name="is_submit" value="1">
                                <button class="positive primary pill button" type="submit" value="{$_lang['submit']}" onclick="return checkForm(document.getElementById('frm_add'));"><span class="check icon"></span>{$_lang['submit']}</button>
                                <button class="pill button" type="button" onclick="history.go(-1);" value="{$_lang['return']}"><span class="uparrow icon"></span>{$_lang['return']}</button>
                            </div>
                        </td>
                      </tr>
					 </tfoot>
                    </table>
                </form>
</div>
<!--{include control/admin/tpl/admin_footer}-->
